package consumer5;

import java.util.LinkedList;
import java.util.Queue;

public class TestQueue {

	public static void main(String[] args) {
		Queue<Integer> q = new LinkedList<Integer>();

		Producer producer = new Producer(q);
		Consumer con1 = new Consumer(q, "A");
		Consumer con2 = new Consumer(q, "B");

		new Thread(producer).start();
		new Thread(con1).start();
		new Thread(con2).start();

	}
}
